package cn.faster.sys.mapper;

import cn.faster.sys.entity.SysMenu;
import cn.faster.sys.vo.SysMenuVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户权限表 Mapper 接口
 * </p>
 *
 * @author xiaoCoder
 * @since 2021-06-10
 */

@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

   /**
	* 根据id查询Menu
	*/
	SysMenu getMenuById(@Param(value = "id") Long id) throws Exception;

	/**
	* 查询Menu列表
	*/
	List<SysMenu> listMenu(Map<String, Object> map) throws Exception;


	/**
	* 新增Menu
	*/
	Integer addMenu(SysMenu sysMenu) throws Exception;

	/**
	* 更新Menu
	*/
	Integer updateMenu(SysMenu sysMenu) throws Exception;

	/**
	* 根据id物理删除Menu
	*/
	Integer deleteMenuById(@Param(value = "id") Integer id)	throws Exception;

	/**
	* 根据id逻辑删除Menu
	*/
	Integer removeMenuById(@Param(value = "id") Integer id)	throws Exception;
}
